<%@ page language="java"
	import="java.util.*,java.lang.*"
	contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>邮箱分类</title>
</head>
<body>
	<h4>邮箱分类</h4> 
	<%
		Map<String,StringBuilder> map = (Map) request.getAttribute("map");
	%>
	<form action="/MailType" method="post">
	<% if (map!=null) {
	  Set<String> keySet = map.keySet();
	%>
		<table border="1">
			<tbody align="left">
				<tr>
					<td>类型</td>
					
					<td>邮件</td>
				</tr>
				<%
				 for (String string : keySet) {
				%>
				<tr>
					<td><%=string%></td>
					<td><textarea cols="150" rows="5"><%= map.get(string).toString() %></textarea></td>
				</tr>
				<%} %>
			</tbody>
		</table>
				<%
					
				}else{
				%><input type="submit">
				<br/>
				<textarea rows="60" cols="150" name="mailString"></textarea>
				
				<%} %>
	</form>
</body>
</html>